package com.ruoyi.carShop.service.impl;

import com.ruoyi.carShop.domain.Activity;
import com.ruoyi.carShop.mapper.ActivityMapper;
import com.ruoyi.carShop.service.IActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityServiceImpl implements IActivityService {
    @Autowired
    private ActivityMapper activityMapper;
    @Override
    public List<Activity> queryActivity(Activity activity) {
        return activityMapper.queryActivity(activity);
    }

    @Override
    public List<Activity> queryActivityWei(Activity activity) {
        return activityMapper.queryActivityWei(activity);
    }

    @Override
    public int addActivity(Activity activity) {
        return activityMapper.addActivity(activity);
    }

    @Override
    public int updateActivityState(Integer id) {
        return activityMapper.updateActivityState(id);
    }

    @Override
    public int updateActivityState2(Integer id) {
        return activityMapper.updateActivityState2(id);
    }

    @Override
    public Activity queryActivityById(Integer id) {
        return activityMapper.queryActivityById(id);
    }

    @Override
    public int deleteActivityById(Integer id) {
        return activityMapper.deleteActivityById(id);
    }
}
